/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package figuras;

/**
 *
 * @author rivas
 */
public class Rectangulo extends Figura{
    float l1;
    float l2;
    
    public Rectangulo(float x, float y, float l1, float l2)
    {
        super(x,y);
        this.l1 = l1;
        this.l2 = l2;
    }

    /**
     * @return the l1
     */
    public float getL1() {
        return l1;
    }

    /**
     * @param l1 the l1 to set
     */
    public void setL1(float l1) {
        this.l1 = l1;
    }

    /**
     * @return the l2
     */
    public float getL2() {
        return l2;
    }

    /**
     * @param l2 the l2 to set
     */
    public void setL2(float l2) {
        this.l2 = l2;
    }
    
 
    @Override
    public float area() {
        return (float)(this.getL1()*this.getL2());
    }
    
}
